package com.hfb.mashibing.alip8.spring.config;

import lombok.extern.slf4j.Slf4j;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/** WebMvcConfigurerAdapter */
@Configuration
@Slf4j
public class MyWebConfig implements WebMvcConfigurer {

    @Override
    public void addViewControllers(ViewControllerRegistry registry) {

        log.debug("addViewControllers(registry)");

        registry.addViewController("/msb").setViewName("h");
    }
}
